using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders;
using Project_Schedule.Model.EntitiesHelper;

namespace Project_Schedule.Model.Entities;

[Table("B_User")]
public class Background_User : ModelBase
{
    [Required] [MaxLength(35)] public string? Account { get; set; }
    [MaxLength(35)] public string? UserName { get; set; }

    [Required]
    [MaxLength(250)]
    [JsonIgnore]
    public string? Password { get; set; }

    public DateTime CreateTime { get; set; }

    public Background_User_Auth_Enum Auth { get; set; }
}